const actions = {
     
}

const mutations = {
   setName(state,val){
     state.name=val
   },
   setAge(state,val){
    state.age=val
   },
   setSex(state,val){
    state.sex=val
   }
}

const state = {
   name: '张三',
   age: 18,
   sex: '男'
}

export default {
    //开启命名空间
    namespaced:true,
    actions,
    mutations,
    state
}


